<?php

require_once dirname(__FILE__).'/MailForm.class.php';

class GenderMailForm extends MailForm {
	public function __construct($mailConfig, $genderValue) {
		$this->genderValue = $genderValue;
		parent::__construct($mailConfig);
	}
	
	public function getMessage() {
		$temp = $this->fields;
		$this->fields = array_merge(
			array(
				'gender' => array(
					'label' => 'Пол',
					'value' => $this->genderValue
				)
			),
			$this->fields
		);
		$html = parent::getMessage();
		$this->fields = $temp;
		return $html;
	}
}